package io.adrainty.algorithm.leetcode.normal;

import java.util.Set;

/**
 * 3227. 字符串元音游戏
 * @author AdRainty
 * @version V1.0.0
 * @since 2025/9/12 上午12:07
 */
public class Solution3227 {

    public boolean doesAliceWin(String s) {
        Set<Character> voewls = Set.of('a', 'e', 'i', 'o', 'u');
        // 只要有元音字母就赢
        return s.chars().anyMatch(c -> voewls.contains((char) c));
    }

    public static void main(String[] args) {
        Solution3227 solution3227 = new Solution3227();
        System.out.println(solution3227.doesAliceWin("aeiou"));
    }

}
